<template>
  <div>
    <h1>app</h1>
    <!-- 1. 以标签属性方式：给子组件传递数据 -->
    <Child :count="count" :person="person" />
  </div>
</template>

<script>
import Child from "./Child";

export default {
  name: "App",
  data() {
    return {
      count: 0,
      person: {
        name: "jack",
      },
    };
  },
  components: {
    Child,
  },
};
</script>

<style></style>
